# -*- conding:UTF-8 -*-

'''
@ Project: P8 flask_progect
@ File: check_token.py
@ Author: 罗婷
@ Date：2022/6/27 11:11

'''

# 校验token
import jwt
from flask import current_app


def token_check(token):
    secret = current_app.config.get('SECRITE_KEY')
    payload = jwt.decode(token, secret, algorithms='HS256')
    return payload



